home *** CD-ROM | disk | FTP | other *** search
- on CheckDrive weirdfile
- if the machineType = 256 then
- repeat with i = 90 down to 66
- set drive to numToChar(i)
- set thisPath to string(drive & ":\" & weirdfile)
- if FileExists(thisPath) = 0 then
- return drive & ":"
- exit
- end if
- end repeat
- alert("You must insert the HRW_IMAP CD-ROM to run this program.")
- else
- set drives to DrivesToList()
- repeat with drive in drives
- set thisPath to string(drive & ":" & weirdfile)
- if FileExists(thisPath) = 0 then
- return drive
- exit
- end if
- end repeat
- alert("You must insert the HRW IMaps CD-ROM to run this program.")
- end if
- quit()
- end
-